home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part1 / 5105 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.7 KB  |  58 lines

  1. Newsgroups: comp.sys.amiga.misc
  2. Path: mozart.unx.sas.com!jamie
  3. From: jamie@cdevil.unx.sas.com (James Cooper)
  4. Subject: Re: .key
  5. Originator: jamie@cdevil.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <DM3n7s.952@unx.sas.com>
  8. Date: Thu, 1 Feb 1996 13:38:16 GMT
  9. X-Nntp-Posting-Host: cdevil.unx.sas.com
  10. References:  <1996Jan23.163238.27082@nosc.mil>
  11. Organization: SAS Institute Inc.
  12.  
  13.  
  14. In article <1996Jan23.163238.27082@nosc.mil>, gdunn@bluefish.nosc.mil (Gary E. Dunn) writes:
  15. >I have a game that is started by executing a script
  16. >via iconx. What puzzles me is that the following
  17. >command line is executed before the game is started:
  18. >
  19. >.key dummy
  20. >
  21. >This puzzles me because there are no files on the disk
  22. >named .key or dummy. Is anyone familiar with this
  23. >command?
  24.  
  25. A quick perusal of The AmigaDOS Manual, The Amiga GURU Book,
  26. or any other reference on the Amiga will show that this is
  27. a script command, recognised by the system.
  28.  
  29. .key <foo>
  30.  
  31. means to use <foo> as an argument in the script, for getting
  32. command line input.  It is very similar to a Template for
  33. ReadArgs()... in fact, it *is* a Template for ReadArgs()!
  34.  
  35. I have written a script recently, which is very similar to:
  36. (may not be exact - I don't have it handy to verify!)
  37.  
  38. -------------------------------------------------------------
  39. .key beta/s,bump/s,clean/s,newtek/s,scala/s
  40. .bra {
  41. .ket }
  42.  
  43. if not {bump} eq ""
  44.   ...
  45. endif
  46. ...
  47. -------------------------------------------------------------
  48.  
  49. -- 
  50. ---------------
  51. Jim Cooper
  52. (jamie@unx.sas.com)                             bix: jcooper
  53.  
  54. Any opinions expressed herein are mine (Mine, all mine!  Ha, ha, ha!),
  55. and not necessarily those of my employer.
  56.  
  57. I'm NOT Politically Correct, but that's because I'm "Sensitivity Challenged."
  58.